package com.ericsson.enap.modules.ebmLog.job.vgc;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.ebmLog.task.vgc.VgcEnipEbmDownloadTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * VGCEBM本地文件下载
 * @author yanghai
 */
@Component
public class VgcEnipEbmDownloadJob implements MainJob {
    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    VgcEnipEbmDownloadTask vgcEnipEbmDownloadTask;
    String jobName="vgcEnipEbmDownloadJob";
    @Override
    public void doTask() {
        System.out.println("vgcEnipEbmDownloadJob start.....");
        //vgcEnipEbmDownloadTask.execute();
        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/5 * * * ?",vgcEnipEbmDownloadTask);
    }
}
